﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace JJYYCore.Coroutines
{
    public abstract class CoroutineSequence
    {
        public List<CoroutineMainDelegate> CoroutineMainList { private set; get; }
        protected abstract List<CoroutineMainDelegate> LoadCoroutines();

        public CoroutineSequence(){
            CoroutineMainList = LoadCoroutines();
        }
    }

    public delegate IEnumerator CoroutineMainDelegate();
}